<Project>
  <Import Project="..\..\Directory.Build.props" />

  <PropertyGroup>
    <!-- Clear AssemblyVersion as we need to align with the NuGet conventions, when empty arcade will do that for us. -->
    <AssemblyVersion />
    <!-- Don't set platform too early as test app paths are currently hardcoded. -->
    <Platform Condition="'$(Platform)' == ''">$(TargetArchitecture)</Platform>
    <DefineConstants Condition="'$(Configuration)' == 'Debug'">$(DefineConstants),DEBUG,TRACE</DefineConstants>
    <DefineConstants Condition="'$(Configuration)' == 'Release'">$(DefineConstants),TRACE</DefineConstants>
    <RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == '' and '$(EnsureRuntimeIdentifierSet)' == 'true'">$(OutputRID)</RuntimeIdentifier>
    <TestTargetRid Condition="'$(TestTargetRid)' == ''">$(OutputRID)</TestTargetRid>
    <!-- Never use the NuGet fallback folder that comes with the SDK we use to build.
      The NuGet fallback folder can/will contain packages we are building in this repo, and we
      want to ensure we use the correct packages. -->
    <DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
  </PropertyGroup>

  <!-- Construct the path to the sign project, so that signing can be called during prepare-artifacts -->
  <PropertyGroup>
    <ArcadeSdkMSBuildProjectDir>$([System.IO.Path]::GetDirectoryName('$(ArcadeSdkBuildTasksAssembly)'))\..\</ArcadeSdkMSBuildProjectDir>
    <ArcadeSdkSignProject>$(ArcadeSdkMSBuildProjectDir)Sign.proj</ArcadeSdkSignProject>
  </PropertyGroup>

</Project>
